/**
 * checks if it's a leap year
 */
export function isLeapYear(fullYear: number | Date): boolean {
  if (fullYear instanceof Date) {
    fullYear = fullYear.getFullYear()
  }
  return fullYear % 400 === 0 || (fullYear % 100 !== 0 && fullYear % 4 === 0)
}
